﻿namespace Scan
{
    /// <summary>
    /// 单据类型
    /// </summary>
    public enum VouchType : uint
    {
        StockInPut = 0,
        StockOutPut = 1,
        StockInSale = 2,
        StockOutSale = 3
    }

    /// <summary>
    /// 参照类型
    /// </summary>
    public enum ReferType : uint
    {
        Vendor = 0,
        Customer = 1,
        Person = 2,
        Warehouse = 3,
        Inventory = 4,
        ComputationGroup = 5,
        ComputationUnit = 6,
        Department = 7
    }

    #region 传输
    /// <summary>
    /// SendType
    /// </summary>
    public enum TransType : uint
    {
        Exit = 0,
        DownloadSysUser = 1,
        DownloadPersons = 2,
        DownloadWarehouses = 3,
        DownloadCompanys = 4,
        DownloadInventorys = 5,
        DownloadAllArchives = 6,  //下载全部档案
        SysUpdate = 7,            //更新PDA系统
        SyncTime = 8             //校对服务器时间
    }

    /// <summary>
    /// TransStatus
    /// </summary>
    public enum TransStatus
    {
        Start,
        Success,
        Fail
    }
    #endregion

    #region 网络

    /// <summary>
    /// 连接应用类型  0：在线应用  1：离线应用
    /// </summary>
    public enum OnLineType : uint
    {
        Online = 0,
        OffLine = 1
    }

    /// <summary>
    /// ConnectType
    /// </summary>
    public enum ConnType
    {
        Offline = -1,
        Gprs,
        Wlan
    }

    /// <summary>
    /// ConnState
    /// </summary>
    public enum ConnState
    {
        Connecting = 2,
        ConnectSuccess = 1,
        NoConnect = 0
    }

    public enum EventType
    {
        Stop,
        Start,
        End
    }
    #endregion

    #region 图标类型
    public enum NetImageType
    {
        NoConnect = 0,
        Connecting = 1,
        WlanConnected = 2,
        GprsConnected = 3
    }

    public enum TransImageType
    {
        Transacting = 0,
        NoTransact = 1,
    }

    public enum SignalImageType
    {
        None = 0,
        Low = 1,
        Normal = 2,
        Good = 3,
        Strong = 4,
    }

    public enum BatteryImageType
    {
        Danger = 0,
        Low = 1,
        Normal = 2,
        Good = 3,
        Full = 4,
        AC = 5
    }

    public enum CapImageType
    {
        Number = 0,
        Lower = 1,
        Upper = 2
    }
    #endregion

    #region 扫描
    public enum ScanStatus : uint
    {
        Exit,
        Scanning,
        StopScan
    }
    #endregion
}